// 新增配置
import request from "@/utils/request";
import defaultSettings from "@/settings";

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/list`,
  exportUrl: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/list`,
  delUrl: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/delete`,
}

export function save(data) {
  return request({
    url: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/save`,
    method: 'post',
    data: data
  })
}

export function checkSysCodeUnique(data) {
  return request({
    url: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/checkSysCodeUnique`,
    method: 'post',
    data
  })
}

export function checkSysNamenique(data) {
  return request({
    url: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/checkSysNameUnique`,
    method: 'post',
    data
  })
}

export function get(data) {
  return request({
    url: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/get`,
    method: 'get',
    params: data
  })
}

export function update(data) {
  return request({
    url: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/update`,
    method: 'post',
    data: data
  })
}

export function del(data) {
  return request({
    url: `${defaultSettings.ctx.batchApp}/s/scubeSysConf/delete`,
    method: 'post',
    data: {
      ids: data
    }
  })
}
